package com.flismax.mysms.activity.sms;

import com.flismax.mysms.R;

import android.app.Activity;
import android.content.ContentValues;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class AddContact extends Activity{
	EditText name;
	EditText phonenumber;
	Button save;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_new_contact_screen);
		name=(EditText)findViewById(R.id.txb_name);
		phonenumber=(EditText)findViewById(R.id.txb_phone_1);
		save=(Button)findViewById(R.id.btsave);
		save.setOnClickListener(new OnClickListener() {
			@SuppressWarnings("deprecation")
			public void onClick(View v) {
				String tname=name.getText().toString();
				ContentValues values=new ContentValues();
				 
				values.put(android.provider.Contacts.People.NAME, tname);
				
			}
		});
		String message="add succes";
	     Toast.makeText(this, message, Toast.LENGTH_LONG).show();
	}
	

}
